package gazzera.gui;

import gazzera.node.core.*;

import java.io.*;


/**
 * This is the mean by which a Gui can create a Core.
 * All that is given back is a GuiInterface to interface to the created Core.
 * All communication must pass throug the interface.
 * @author nicola
 *
 */
public class CoreFactory
{
    public static GuiInterface createCore(File keystore, GuiInterface gui) throws Exception
    {
		Core c = new Core(keystore, gui);
		ThreadRunner.start(c, "Core", false);
		return c;
    }
	
}
